Optimal. Leaf size=42 \[ -\frac{2 a \cos (c+d x)+a}{6 d (1-\cos (c+d x)) (a \cos (c+d x)+a)^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.127259, antiderivative size = 42, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.19, Rules used = {3872, 2836, 12, 81} \[ -\frac{2 a \cos (c+d x)+a}{6 d (1-\cos (c+d x)) (a \cos (c+d x)+a)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3872
Rule 2836
Rule 12
Rule 81
Rubi steps
\begin{align*} \int \frac{\csc ^3(c+d x)}{(a+a \sec (c+d x))^2} \, dx &=\int \frac{\cot ^2(c+d x) \csc (c+d x)}{(-a-a \cos (c+d x))^2} \, dx\\ &=\frac{a^3 \operatorname{Subst}\left (\int \frac{x^2}{a^2 (-a-x)^2 (-a+x)^4} \, dx,x,-a \cos (c+d x)\right )}{d}\\ &=\frac{a \operatorname{Subst}\left (\int \frac{x^2}{(-a-x)^2 (-a+x)^4} \, dx,x,-a \cos (c+d x)\right )}{d}\\ &=-\frac{a+2 a \cos (c+d x)}{6 d (1-\cos (c+d x)) (a+a \cos (c+d x))^3}\\ \end{align*}
Mathematica [A] time = 0.0893072, size = 38, normalized size = 0.9 \[ -\frac{(2 \cos (c+d x)+1) \csc ^2(c+d x)}{6 a^2 d (\cos (c+d x)+1)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.066, size = 57, normalized size = 1.4 \begin{align*}{\frac{1}{d{a}^{2}} \left ({\frac{1}{12\, \left ( \cos \left ( dx+c \right ) +1 \right ) ^{3}}}-{\frac{1}{8\, \left ( \cos \left ( dx+c \right ) +1 \right ) ^{2}}}-{\frac{1}{16\,\cos \left ( dx+c \right ) +16}}+{\frac{1}{-16+16\,\cos \left ( dx+c \right ) }} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.9793, size = 80, normalized size = 1.9 \begin{align*} \frac{2 \, \cos \left (d x + c\right ) + 1}{6 \,{\left (a^{2} \cos \left (d x + c\right )^{4} + 2 \, a^{2} \cos \left (d x + c\right )^{3} - 2 \, a^{2} \cos \left (d x + c\right ) - a^{2}\right )} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.64883, size = 142, normalized size = 3.38 \begin{align*} \frac{2 \, \cos \left (d x + c\right ) + 1}{6 \,{\left (a^{2} d \cos \left (d x + c\right )^{4} + 2 \, a^{2} d \cos \left (d x + c\right )^{3} - 2 \, a^{2} d \cos \left (d x + c\right ) - a^{2} d\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{\int \frac{\csc ^{3}{\left (c + d x \right )}}{\sec ^{2}{\left (c + d x \right )} + 2 \sec{\left (c + d x \right )} + 1}\, dx}{a^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.33295, size = 111, normalized size = 2.64 \begin{align*} \frac{\frac{3 \,{\left (\cos \left (d x + c\right ) + 1\right )}}{a^{2}{\left (\cos \left (d x + c\right ) - 1\right )}} + \frac{\frac{6 \, a^{4}{\left (\cos \left (d x + c\right ) - 1\right )}}{\cos \left (d x + c\right ) + 1} - \frac{a^{4}{\left (\cos \left (d x + c\right ) - 1\right )}^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}}}{a^{6}}}{96 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]